package com.faw.pojo;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@Data
@TableName("t_user")
public class User {
    //声明为主键与映射
    @TableId(type = IdType.AUTO)
    private Long id;
    private String name;
    private Integer age;
    private String email;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifyTime;
    @TableLogic
    private Integer isDeleted;
    //告诉数据库这不是db的字段，常用于vo中放额外的参数
    @TableField(exist = false)
    private String label;
}
